
<%@ page import="restfuljobs.JobListing" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'jobListing.label', default: 'JobListing')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-jobListing" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-jobListing" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list jobListing">
			
				<g:if test="${jobListingInstance?.employer}">
				<li class="fieldcontain">
					<span id="employer-label" class="property-label"><g:message code="jobListing.employer.label" default="Employer" /></span>
					
						<span class="property-value" aria-labelledby="employer-label"><g:fieldValue bean="${jobListingInstance}" field="employer"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${jobListingInstance?.jobCategory}">
				<li class="fieldcontain">
					<span id="jobCategory-label" class="property-label"><g:message code="jobListing.jobCategory.label" default="Job Category" /></span>
					
						<span class="property-value" aria-labelledby="jobCategory-label"><g:fieldValue bean="${jobListingInstance}" field="jobCategory"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${jobListingInstance?.jobDescription}">
				<li class="fieldcontain">
					<span id="jobDescription-label" class="property-label"><g:message code="jobListing.jobDescription.label" default="Job Description" /></span>
					
						<span class="property-value" aria-labelledby="jobDescription-label"><g:fieldValue bean="${jobListingInstance}" field="jobDescription"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${jobListingInstance?.jobTitle}">
				<li class="fieldcontain">
					<span id="jobTitle-label" class="property-label"><g:message code="jobListing.jobTitle.label" default="Job Title" /></span>
					
						<span class="property-value" aria-labelledby="jobTitle-label"><g:fieldValue bean="${jobListingInstance}" field="jobTitle"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${jobListingInstance?.jobType}">
				<li class="fieldcontain">
					<span id="jobType-label" class="property-label"><g:message code="jobListing.jobType.label" default="Job Type" /></span>
					
						<span class="property-value" aria-labelledby="jobType-label"><g:fieldValue bean="${jobListingInstance}" field="jobType"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${jobListingInstance?.location}">
				<li class="fieldcontain">
					<span id="location-label" class="property-label"><g:message code="jobListing.location.label" default="Location" /></span>
					
						<span class="property-value" aria-labelledby="location-label"><g:fieldValue bean="${jobListingInstance}" field="location"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${jobListingInstance?.salaryFrom}">
				<li class="fieldcontain">
					<span id="salaryFrom-label" class="property-label"><g:message code="jobListing.salaryFrom.label" default="Salary From" /></span>
					
						<span class="property-value" aria-labelledby="salaryFrom-label"><g:fieldValue bean="${jobListingInstance}" field="salaryFrom"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${jobListingInstance?.salaryTo}">
				<li class="fieldcontain">
					<span id="salaryTo-label" class="property-label"><g:message code="jobListing.salaryTo.label" default="Salary To" /></span>
					
						<span class="property-value" aria-labelledby="salaryTo-label"><g:fieldValue bean="${jobListingInstance}" field="salaryTo"/></span>
					
				</li>
				</g:if>

				<li class="fieldcontain">
					<span id="status-label" class="property-label"><g:message code="jobListing.status.label" default="Status" /></span>
					
						<span class="property-value" aria-labelledby="status-label"><g:fieldValue bean="${jobListingInstance}" field="status"/></span>
					
				</li>
			
			</ol>
		<g:if test="${session.user && session.user.id == jobListingInstance.recruiter.id}">	
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${jobListingInstance?.id}" />
					<g:link class="edit" action="edit" id="${jobListingInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</g:if>
		</div>
	</body>
</html>
